package com.lepu.pcecg500.http;

import android.content.Context;
import android.content.SharedPreferences;

import com.blankj.utilcode.util.SPUtils;

/**
 * @author: wfx
 * @create: 2024-08-13 15:13
 * @desc :
 */
public class HttpUrl {

    public static final String baseUrl = "http://106.14.191.138:8181";

    public static final String ecgUrl = "/Api/Mobile/Check/XDGZZ";
    // 获取基本信息
    public static final String SelectCold = "/Api/Mobile/Check/SelectCold";


    public static String getHttpUrl() {
//        SharedPreferences shareDatas = context.getSharedPreferences("saveHeightWeight", Context.MODE_PRIVATE);
//        String ym = "http://" + shareDatas.getString("ym","");
//        String dk = shareDatas.getString("dk","");
//        String address2 = shareDatas.getString("address2","");
//        if(ym.equals("http://")){
//            ym = "http://60.208.57.82";
//            dk = "2227";
//            address2 = "/Api/WeChat/UpdateFPGL/";
//        }

        String baseurl = SPUtils.getInstance().getString("ipAddress", baseUrl);

        return baseurl;
    }
}
